home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / util307.arc / ENVIRO.PAT < prev    next >
Text File  |  1987-03-04  |  1KB  |  34 lines

  1.                           -------------
  2.                           -ENVIRON.PAT-
  3.                           -------------
  4.  
  5.      The  following is a patch for COMMAND.COM (IBM-PC) to  allow
  6. for a larger environment area.   Currently,  only 223 bytes total
  7. are  allowed for environment string storage,  with all data  over
  8. 223  bytes truncated.   Use the following patch to  increase  the
  9. size of this data area:
  10.  
  11. 1) DEBUG COMMAND.COM                    (load COMMAND.COM into debugger)
  12.  
  13. 2) S 100 4600 BB 0A 00 B4 48 CD 21      (search for allocation call)
  14.  
  15. 3) Replace the 0A with the new area size factor (in paragraphs).
  16.  
  17.  
  18.  
  19.      The string searched for in step 2 is a call to allocate space for  the
  20. environment area:
  21.  
  22.      BB 0A 00       MOV  BX,0AH         ; area size factor=10 decimal
  23.      B4 48          MOV  AH,48          ; allocation function number
  24.      CD 21          INT  21             ; perform allocation call
  25.  
  26.  
  27.  
  28.      The area size factor is calculated as (A+4)*16,  with A being the area
  29. factor.  The default value of 10 decimal yields an environment area of  224
  30. bytes,  increasing  the value to 20 decimal (14H) will yield an area of 384
  31. bytes; increasing the value to 30 decimal (1EH) will yield 544 bytes.
  32.  
  33.      In DOS 2.10, the area factor byte is plugged in at location ECF.
  34.